﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>CMS - 后台管理系统</title>
    <link href="/resource/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/resource/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link href="/resource/css/ionicons.min.css" rel="stylesheet" type="text/css" />
    <link href="/resource/css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="row">
    <div class="col-md-12">
    	<h1 class="panel-heading">政策事项申报成功</h1>
    </div>
</div>
<section class="panel">
	<div class="panel-body">
		<form class="col s12" id="form1" th:action="@{/admin/messageInfo/add}" onsubmit="return validateForm();" method="post">
			<div class="form-group form-control-medium">
				<label for="msgTitle">请保留流水号：【<span th:text="${applyId}"></span>】用于后续查询审批结果！</label>
			</div>
		</form>
	</div>
</section>
<script src="/resource/js/jquery.min.js"></script>
<script src="/resource/js/coco-message/coco-message.js"></script>
<script>
    function validateForm(){
    	var msgTitle = $("#msgTitle").val();
    	var msgContent = $("#msgContent").val();
    	if(msgTitle == null || msgTitle==''){
    		cocoMessage.error("留言标题不能为空");
    		return false;
    	}
    	if(msgContent == null || msgContent==''){
    		cocoMessage.error("留言内容不能为空");
    		return false;
    	}
    	return true;
    }
</script>
</body>
</html>
